<?php
-/*require_once( "../includes/DefaultSettings.php" );
-require_once( "../LocalSettings.php" );
-require_once( "../includes/MemCachedClient.inc.php" );*/
-
-
-require_once( "liveCmdLine.inc" );
+require_once( "commandLine.inc" );
do {
$line = readconsole( "> " );
}
} while ( 1 );
-function readconsole( $prompt = "" ) {
- if ( function_exists( "readline" ) ) {
- return readline( $prompt );
- } else {
- print $prompt;
- $fp = fopen( "php://stdin", "r" );
- $resp = trim( fgets( $fp, 1024 ) );
- fclose( $fp );
- return $resp;
- }
-}
<?php
-/*require_once( "../includes/DefaultSettings.php" );
-require_once( "../LocalSettings.php" );
-require_once( "../includes/MemCachedClient.inc.php" );*/
-
-require_once( "liveCmdLine.inc" );
+require_once( "commandLine.inc" );
$mcc = new memcached( array('persistant' => true) );
$mcc->set_servers( $wgMemCachedServers );
}
} while ( !$quit );
-function readconsole( $prompt = "" ) {
- if ( function_exists( "readline" ) ) {
- return readline( $prompt );
- } else {
- print $prompt;
- $fp = fopen( "php://stdin", "r" );
- $resp = trim( fgets( $fp, 1024 ) );
- fclose( $fp );
- return $resp;
- }
-}
-
-
-
?>